package com.gsmr.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gsmr.dao.AlarmThresholdDao;
import com.gsmr.entity.AlarmThreshold;
import com.gsmr.service.AlarmThresholdService;

/**
 * AlarmThresholdService实现类
 * @author alarmThreshold
 *
 */
@Service("alarmThresholdService")
public class AlarmThresholdServiceImpl implements AlarmThresholdService{

	@Resource
	private AlarmThresholdDao alarmThresholdDao;
	
	public List<AlarmThreshold> find(Map<String, Object> map) {
		return alarmThresholdDao.find(map);
	}

	public Long getTotal(Map<String, Object> map) {
		return alarmThresholdDao.getTotal(map);
	}

	public int updateByServerId(Map<String, Object> map) {
		return alarmThresholdDao.updateByServerId(map);
	
	}

	@Override
	public int updateByfrontProcessorId(Map<String, Object> map) {
		// TODO Auto-generated method stub
			return alarmThresholdDao.updateByfrontProcessorId(map);
	}

	@Override
	public void insertOperateRecord(Map<String, Object> map) {
		// TODO Auto-generated method stub
		alarmThresholdDao.record(map);
	}

	@Override
	public String getSiteName(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return alarmThresholdDao.getSiteName(map);
	}

}
